package main

import "fmt"

func main() {
	var students [5]string	//声明数组
	for idx, val := range students {
		fmt.Printf("index=%d, val=%s\n", idx, val)
	}
	students[3] = "zhangsan"
	for idx, val := range students {
		fmt.Printf("index=%d, val=%s\n", idx, val)
	}
}
